package org.zhou.springbootstudy.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;


//核心 自动装配
@RestController

public class HelloController {

    @RequestMapping("/hello")
    @ResponseBody
    public String hello(){
//        调用业务 接受前端参数
        return "hello world ";
    }

}
